<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $cat=new \Admin\Model\CatModel;
        $cats=$cat->select();
        $this->assign('cats',$cats);
        $this->display();
    }
}